﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.MainNewsPage" Title="" StylesheetTheme="SkinFile" Codebehind="MainNewsPage.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, MainNewsPage_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    <asp:ListView ID="NewsListView" runat="server" DataSourceID="SqlDataSource1">
        <LayoutTemplate>
            <asp:Label ID="itemplaceholder" runat="server"></asp:Label>
        </LayoutTemplate>
        <ItemTemplate>
            <div class="basic_element">
            <div class="red_title">
                <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' CssClass="white_title"></asp:Label>
            </div>
            <div class="padding5">
                <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' SkinID="TeamIdLabel"></asp:Label>
                <br /><br />
                <asp:Label ID="BodyLabel" runat="server" Text='<%# EncodeNews(Eval("Body")) %>' SkinID="GridLabel"></asp:Label>
            </div>
            </div>                                                          
           
            
        </ItemTemplate>
        <EmptyDataTemplate>
         <asp:Label ID="Label2" runat="server" Text="Empty"></asp:Label>
        </EmptyDataTemplate>
    </asp:ListView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetLatestNews" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    
        
    
</asp:Content>
